package com.zhao.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zhao.Result;
import com.zhao.entity.EduCourse;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zhao.entity.To.CourseTo;
import com.zhao.entity.Vo.CourseVo;
import com.zhao.entity.Vo.TeacherQuery;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author xiaozhao
 * @since 2021-07-26
 */
public interface EduCourseService extends IService<EduCourse> {

    String addCourse(CourseVo courseVo);

    CourseVo findAllInfo(String id);

    String updateCourse(CourseVo courseVo);

    CourseTo getAll(String id);

    int publicCourseById(String id);

    Page findAllCourseInfo(TeacherQuery teacherQuery, Integer pageSize, Integer currentPage);
//    List<CourseTo> findAllCourseInfo(Page<CourseTo> page, TeacherQuery teacherQuery);

    void changeStatus(String id, String status);
    @Transactional
    Integer delPublicCourseById(String id);
}
